<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2017/6/27
  Time: 16:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>服务器时间显示</title>
    <script src="js/jquery-3.2.1.min.js"></script>
    <script>
        function tt() {
            $.ajax({
                url:"/user/dataer.action",
                type:"GET",
                dataType:"text",
                cache:false,
                success:function (d) {
                    $('#ttt').html(d)
                }
            })
        }
        $(function () {
            tt();
            setInterval(tt,1000);
        })
    </script>
</head>
<body>
<div id="ttt"></div>
</body>
</html>
